package com.nf.health.app.models;

import java.io.Serializable;

/**
 * Created by Jason on 2016/6/15.
 * 上传新运动数据
 */
public class BralectModel implements Serializable{
   /* {
        "timeStamp": "1465972030646",
            "calorie": "1",
            "steps": "1",
            "distance": "1"
    }*/
    private String timeStamp;
    private String calorie;
    private String steps;
    private String distance;

    public String getTimeStamp() {
        return timeStamp;
    }

    public void setTimeStamp(String timeStamp) {
        this.timeStamp = timeStamp;
    }

    public String getCalorie() {
        return calorie;
    }

    public void setCalorie(String calorie) {
        this.calorie = calorie;
    }

    public String getSteps() {
        return steps;
    }

    public void setSteps(String steps) {
        this.steps = steps;
    }

    public String getDistance() {
        return distance;
    }

    public void setDistance(String distance) {
        this.distance = distance;
    }

    @Override
    public String toString() {
        return "BralectModel{" +
                "timeStamp='" + timeStamp + '\'' +
                ", calorie='" + calorie + '\'' +
                ", steps='" + steps + '\'' +
                ", distance='" + distance + '\'' +
                '}';
    }

   public BralectModel getBralectModel(String timeStamp,String calorie,String steps ,String distance){
       BralectModel bralectModel = new BralectModel();
       bralectModel.setCalorie(calorie);
       bralectModel.setSteps(steps);
       bralectModel.setTimeStamp(timeStamp);
       bralectModel.setDistance(distance);
       return bralectModel;
   }
}
